home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: sekruege@nando.net (Steve Krueger)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Bug in cpr: OpenDevice() from tasks
- Date: 7 Feb 1996 01:51:48 GMT
- Organization: News & Observer Public Access
- Message-ID: <4f90jl$dgd@castle.nando.net>
- References: <40126514@rzstud2.rz.uni-karlsruhe.de>
- NNTP-Posting-Host: vyger415.nando.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-NewsReader: Interworks_GRn 3.0 January 12, 1996
-
- In article <40126514@rzstud2.rz.uni-karlsruhe.de> "Patrick Ohly" <un60@rzstud2.rz.uni-karlsruhe.de> writes:
- : Hi!
- :
- : I found a bug in cpr V6.56: When a task under control of the
- : debugger tries to open a device Enforcer reports some hits
- : in the dos.library and finally the system crashes.
- :
- : I guess that cpr's patch of OpenDevice() assumes that only
- : processes call OpenDevice() and fails with tasks. However,
- : from V36 on tasks are allowed to call OpenDevice().
- :
- : Is my assumption correct and is there a chance that this bug
- : will be fixed? Admittedly, a workaround is simple: Use
- : processes instead of tasks while debugging. That's what I'll
- : do...
- :
-
-
- CPR's setfunctions grap the filename, and then use DOS.LIBRARY
- to try to find the file (ie does DEVS: need to be prepended or
- not). I guess calls to DOS.LIBRARY are not too good from a task.
-
- CPR needs the full path so that it can later load the
- debug information.
-
- Fixing this would be rather difficult. I guess I'd have to have CPR
- OpenDevice patch send a message back to CPR somehow.
-
-
- Another workaround is to disable CPR's patches with the -nolib
- option, and add code to produce a harmless enforcer hit in your
- device. When CPR stops at the enforcer hit, you should be able
- to load the debug info by hand with the SYMLOAD command. An example
- of this method is included with SAS/C.
-
-
-
- -- |__ o\
- ______ | W \O
- __________ /__ | H\_
- __ ___/_ //_/ | /-\
- _(__ )_ ,< | / \
- /____/ /_/|_| |
- sekruege@nando.net |
-